module.exports = {
  extends: [
    '@tencent/stylelint-config-tencent',
  ],
  // add your custom config here
  // https://stylelint.io/user-guide/configuration
  ignoreFiles: [
    'miniprogram_npm/**/*.wxss',
    'modules/realtimebus/**/*.wxss',
  ],
  rules: {
    'unit-no-unknown': [
      true,
      {
        ignoreUnits: [
          'rpx',
        ],
      },
    ],
    'font-family-no-missing-generic-family-keyword': null,
    'no-empty-source': null,
    'rule-empty-line-before': 'never',
    'at-rule-empty-line-before': 'never',
    'selector-type-no-unknown': [
      true,
      {
        ignoreTypes: [
          'cover-image',
          'cover-view',
          'radio',
          'wx-cover-view',
          'picker',
          'page',
          'navigator',
          'checkbox',
          'swiper',
          'swiper-item',
          'scroll-view',
        ],
      },
    ],
  },
};
